/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.nxlv2.nomad.businessobjects;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Nastasia
 */
public class Tva {

    private int idBase, idAppli;
    private double taux;
    private String libelle;
    private ArrayList<Prix> listPrix;

    /**
     *
     * @param idBase
     * @param idAppli
     * @param taux
     * @param libelle
     * @param listPrix
     */
    public Tva(int idBase, int idAppli, double taux, String libelle, ArrayList<Prix> listPrix) {
        this.idBase = idBase;
        this.idAppli = idAppli;
        this.taux = taux;
        this.libelle = libelle;
        this.listPrix = listPrix;
    }

    public Tva() {}

    /**
     *
     * @return idBase
     */
    public int getIdBase() {
        return idBase;
    }

    /**
     *
     * @param idBase the idBase to set
     */
    public void setIdBase(int idBase) {
        this.idBase = idBase;
    }

    /**
     *
     * @return idAppli
     */
    public int getIdAppli() {
        return idAppli;
    }

    /**
     *
     * @param idAppli the idAppli to set
     */
    public void setIdAppli(int idAppli) {
        this.idAppli = idAppli;
    }

    /**
     *
     * @return taux
     */
    public double getTaux() {
        return taux;
    }

    /**
     *
     * @param taux the taux to set
     */
    public void setTaux(double taux) {
        this.taux = taux;
    }

    /**
     *
     * @return libelle
     */
    public String getLibelle() {
        return libelle;
    }

    /**
     *
     * @param libelle the libelle to set
     */
    public void setLibelle(String libelle) {
        this.libelle = libelle;
    }

    /**
     *
     * @return listPrix
     */
    public List<Prix> getListPrix() {
        return listPrix;
    }

    /**
     *
     * @param listPrix the listPrix to set
     */
    public void setListPrix(ArrayList<Prix> listPrix) {
        this.listPrix = listPrix;
    }

    /**
     *
     * @return String
     */
    @Override
    public String toString() {
        return "Tva{" + "idBase=" + idBase + ", idAppli=" + idAppli + ", taux=" + taux + ", libelle=" + libelle + ", listPrix=" + listPrix + '}';
    }
    
    public String toJSONString(){
        return "{\"idBase\":\""+ idBase +"\",\"idAppli\":\""+ idAppli +"\",\"taux\":\""+ taux +"\",\"libelle\":\""+ libelle +"\"}";
    }
}
